/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.hamacekj.geometr;

import cz.hamacekj.geometr.plugin.ICircleObject;

/**
 * Výchozí implementace {@link ICircleObject}.
 * @author hamacekh
 */
public class CircleObject implements ICircleObject {

    private Point S;
    private double r;

    /**
     * Create CircleObject with center S and radius r.
     * @param S center center
     * @param r radius radius
     */
    public CircleObject(Point S, double r) {
        this.S = S;
        this.r = r;
    }
    
    @Override
    public Point getCenter(){
        return S;
    }
    
    
    @Override
    public double getRadius(){
        return r;
    }
    
    
    
}
